﻿@model IEnumerable<InfoLogic.Models.User>

@Html.Partial("_ViewSwitcher")
@{
    ViewBag.Title = "Manage Profile";
}

<h2>Manage Your Profile</h2>

<ul data-role="listview" data-inset="true">
    <li data-role="list-divider">Navigation</li>
  
    <li>@Html.ActionLink("Business(es)", "Index","Business")</li> 
    <li>@Html.ActionLink("Business Types", "Index", "BusinessType")</li>
    <li> @Html.ActionLink("Business Address(es)", "Index", "BussinessAddress")</li> 
    <li> @Html.ActionLink("Home Address(es)", "ManageAddresses", "Address")</li> 
    <li> @Html.ActionLink("Contact(s)", "Index", "Contact")</li> 
    <li> @Html.ActionLink("Personal Info", "Index", "Person")</li> 
    <li> @Html.ActionLink("Login Details", "Index", "Users")</li> 
</ul>

@*<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserPassword)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Role.RoleName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Person.FirstName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserPassword)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Role.RoleName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Person.FirstName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserId }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserId })
        </td>
    </tr>
}

</table>*@
